<include file="Public:header" />


<link rel="stylesheet" type="text/css" href="__PUBLIC__/Js/validform/style.css">
<script src="__PUBLIC__/Js/validform/Validform.js"></script>
<script>
	
	$(document).ready(function(e) {
        $.ajax({
			url:"{:U('Ajax/getRegion')}",
			data:"",
			type:"POST",
			dataType:"html",
			success: function(data){
				$('#areabox').html(data);
			}
		}); 
    });
	function removnextAll(e){
		if($(e).next().length>0){
			removnextAll($(e).next());
			$(e).next().remove();
		}
	}
	function sendRegion(e){
		if(e.value>0){
			$.ajax({
			url:"{:U('Ajax/getRegion')}",
			data:"fid="+e.value,
			type:"POST",
			dataType:"html",
				success: function(data){
					removnextAll(e);
					$(e).parent().append(data);
				}
		    });
	    }else{
		    removnextAll(e);
	    }
	    return false;
	}

</script>

<div class="main">

      <div class="panel panel-default">
        <div class="panel-body">
          <div class="row">
            <div style="width:10%; float:left; text-align:center; ">
            <a href="<?php echo U('checkOut');?>"><i style="font-size:2em; color:#ccc;" class="glyphicon glyphicon-menu-left"></i></a>
            </div>
            <div style="width:80%; float:left; text-align:center; "><span id="getaddress" style="color:#000000; font-size:16px; ">管理收货地址</span></div>
          </div>
        </div>
      </div>
      
      
      <form class="demoform" action="<?php echo U('checkOut');?>" method="post">
      <div class="panel panel-default" style="padding:5px;">
      <!-- Default panel contents -->
      <div class="panel-heading">请填写收货信息</div>
      <!-- List group -->
      <ul class="list-group">
        <input type="hidden" value="address"  name="type">
        <li class="list-group-item"><input datatype="*" type="text"  class="form-control"  name="yourname" placeholder="收货人姓名(必填)" errormsg="请填写姓名" ></li>
        <li class="list-group-item"><span id="areabox"></span></li>
        
        <li class="list-group-item"><input datatype="*"  type="text" class="form-control"  name="address" placeholder="收货人详细地址(必填)" errormsg="请填写详细地址" ></li>
        
        <li class="list-group-item"><input datatype="*"  type="text" class="form-control"  name="tel" placeholder="收货人手机号码(必填)" errormsg="请填写账号" ></li>
        
        <li class="list-group-item"><input datatype="*"  type="submit" class="form-control" value="配送至这个地址" style="background: rgba(148,87,88,1.00); color:rgba(243,243,243,1.00);"></li>
      </ul>
    </div>
 </form>

</div>
    
    


<script>
$(".demoform").Validform();
</script>

<include file="Public:footer" />

